import { createRoot } from 'react-dom/client'
import { RouterProvider, createBrowserRouter } from 'react-router-dom'
import '@ant-design/v5-patch-for-react-19';
import { BookManage } from './pages/BookManage'
import { Login } from './pages/Login'
import { Register } from './pages/Register'

const routes = [
  {
    path: "/login",
    element: <Login/>
  },
  {
    path: "/register",
    element: <Register />
  },
  {
    path: "/",
    element: <BookManage />
  }
]
const router = createBrowserRouter(routes)

createRoot(document.getElementById('root')!).render(<RouterProvider router={router} />)
